package kr.hkit.javaproject.chapter00;

import java.util.Scanner;

public class Shop {
	public static void main(String[] args) {
		int aProduct;
		int price;
		
		Scanner input = new Scanner(System.in);
		System.out.print("물건의 개수를 입력하시오: ");
		aProduct = input.nextInt();
		
		if(aProduct >= 100){
			price = (int) (aProduct * 100 * 0.8);
		}else{
			if(aProduct >= 20){
				price = (int) (aProduct * 100 * 0.85);
			}else{
				price = aProduct * 100;
			}
		}
		System.out.print(aProduct + "개의 가격은" + price);
	}
}

